<script>
$(function(){
	$('#searchtype').val(INPUT_GET.searchtype);
    $('#keyword').val(INPUT_GET.keyword);
});
</script>
<!--<div class="search">
    <form id='search'>
        <span>
            <select name="searchtype" id="searchtype" class="select1">
                <option>请选择查询类型</option>
                <option value="code">货号</option>
                <option value="product_name">商品名称（慢）</option>
                <option value="systemtype">系统类型</option>
            </select>
        </span>

        <span>
            <input type="text" name="keyword" id="keyword" value="" />
        </span>

        <span><input type="submit" value="搜索" /><?php echo showhide(array('app'=>APP,'mod'=>MOD)); ?></span>
    </form>
</div>-->
<div class="line_1"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table1">
       <tr>
            <th class="th0" rel="loan_id">编号</th>
            <th class="th0" rel="username">职员用户名</th>
            <th class="th0" rel="nickname">职员姓名</th>
            <th class="th0" rel="price">借款金额</th>
            <th class="th0" rel="created_time">申请时间</th>
            <th class="th0" rel="audit1_username">审核</th>
            <th class="th0" rel="audit2_username">审批</th>
            <?php if($this->type=='my'):?>
            <th class="th0">状态</th>
            <?php endif ?>
            <th class="th0">操作</a>
       </tr>
       <?php foreach((array)$this->loan_list as $loan): ?> 
       <tr>
            <td><?php echo $loan['loan_id']; ?></td>
            <td><?php echo $loan['username']; ?></td>
            <td><?php echo $loan['nickname']; ?></td>
            <td><?php echo $loan['price']; ?></td>
            <td><?php echo date('Y-m-d',$loan['created_time']); ?></td>
            <td><?php echo $loan['audit1_username']?$loan['audit1_username']:'-'; ?></td>
            <td><?php echo $loan['audit2_username']?$loan['audit2_username']:'-'; ?></td>
             <?php if($this->type=='my'):?>
            <td><?php echo $loan['audit_state']?$loan['audit_state']:'-'; ?></td>
            <?php endif ?>
            <td><?php echo opt('view','?app='.APP.'&mod='.MOD.'&loan_id='.$loan['loan_id']); ?></td>
       </tr>
       <?php endforeach; ?>
</table>
<div class="page_num">
     <div class="fl">
        <span></span>
     </div>
     <div class="fr">
        <p class="cpager">
            <?php echo $this->pager; ?>
        </p>
     </div>
</div>